package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.api.model.vo.GoodsPlaceVo;
import com.weixing.mall.provider.model.domain.PhotoAlbum;
import com.weixing.mall.provider.model.dto.PhotoAlbumDto;
import com.weixing.mall.provider.model.query.PhotoAlbumQuery;
import com.weixing.mall.provider.model.vo.PhotoAlbumVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 商品模块-商品图片相册表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface IPhotoAlbumService extends IService<PhotoAlbum> {

    /**
     * @Description 保存相册 <br/>
     * @author gjq
     * @date 2019/8/7 16:10
     * @param photoAlbumDto
     * @return void
     */
    void save(PhotoAlbumDto photoAlbumDto);

    /**
     * @Description 条件查询相册 <br/>
     * @author gjq
     * @date 2019/8/8 9:21
     * @param page
     * @Param: photoAlbumQuery
     * @return com.github.pagehelper.PageInfo<com.weixing.mall.provider.model.vo.PhotoAlbumVo>
     */
    IPage<PhotoAlbumVo> selectOfPage(Page page, PhotoAlbumQuery photoAlbumQuery);
    /**
     * @Description 查询相册 <br/>
     * @author gjq
     * @date 2019/8/12 17:06
     * @param photoAlbumQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.PhotoAlbumVo>
     */
    List<PhotoAlbumVo> selectList(PhotoAlbumQuery photoAlbumQuery);
    /**
     * @Description 批量删除 <br/>
     * @author gjq
     * @date 2019/8/9 13:44
     * @param ids
     * @return int
     */
    int delBatch(int[] ids);

    void saveImportImg(MultipartFile file,int flag,Long parentId);

    void improtExcel(MultipartFile file);

    List<PhotoAlbumVo> tree();

    List<PhotoAlbumVo>  test();
}
